home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oh!X 2001 Spring
/
Oh!X 2001 Spring Special CD-ROM (Japan).7z
/
Oh!X 2001 Spring Special CD-ROM (Japan) (Track 1).bin
/
FBENC
/
TEC-FB^3.sea
/
TEC-FB^3
/
TEC1.MAIN
< prev
next >
Wrap
Text File
|
2000-07-05
|
717b
|
35 lines
/*
Text Encoding Converter Example #1
Takaaki Mizuno(takaaki@cds.ne.jp)
2000.7.5
*/
DIM xErr AS OSStatus
DIM inputEncoding AS TextEncoding
DIM outputEncoding AS TextEncoding
DIM converter AS TECObjectRef
DIM inputact AS ByteCount
DIM outputact AS ByteCount
DIM a$, b$
DIM d AS BYTE
END GLOBALS
WINDOW #1,"test"
a$ = "テスト文字列"
xErr = FN TECGetTextEncodingFromInternetName(@inputEncoding,"Shift_JIS")
xErr = FN TECGetTextEncodingFromInternetName(@outputEncoding,"UTF-8")
xErr = FN TECCreateConverter (@converter, inputEncoding, outputEncoding)
xErr = FN TECConvertText (converter, @a$+1, |@a$|, @inputact,@b$+1,255, @outputact)
xErr = FN TECDisposeConverter(converter)
d = outputact
| @b$,d
PRINT b$
STOP